<?php
//error_reporting(E_ALL | E_STRICT);

require_once 'Error/PhpErrorHandler.php';
$errhandler = new Error\PhpErrorHandler;
set_error_handler(array($errhandler, 'handle'), E_ALL | E_STRICT);

require_once 'Module/ModuleManager.php';
$mm = new Module\ModuleManager(__DIR__);

$g = new Globals($errhandler, $mm, new \Filesystem\PathReference(__DIR__.'/_test', __DIR__));
$l = $g->getLoggerFactory()->newDefault('moin');

$pop = function () {
	$pop = function () {
		$pop = function () {
			global $l;
			$l->finest('WHA TWHATHAWT ');
		};
		$pop();
	};
	$pop();
};
$pop();

$g->getCache()->exists('bongbong');
